package org.example.myleet.p768;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(1 == solution.maxChunksToSorted(new int[]{5,4,3,2,1}));
        Assert.isTrue(4 == solution.maxChunksToSorted(new int[]{2,1,3,4,4}));
        Assert.isTrue(5 == solution.maxChunksToSorted(new int[]{1,2,3,4,4}));
        Assert.isTrue(2 == solution.maxChunksToSorted(new int[]{2,1,3,0,4}));
    }
}
